FileAttributes
metadata
[primitive]
It is of the type primitive.
It may also be nil.
permissions
It is one (not all) of the following types:
Subtype A
owner
It is one (not all) of the following types:
Subtype A
It is always the string system.
Subtype B
It is of the type number.
userPermissions
[number]
It is of the type FilePermissions.
It may also be nil.
Subtype B
It is of the type FilePermissions.
It may also be nil.
Luau Type
This is the luau type for FileAttributes. It may help clear up mistranslations from the raw data to the wiki page (as it is an automatic process).
export type FileAttributes = {
permissions: ({
userPermissions: {
[number]: FilePermissions,
}?,
owner: "system" | number,
} | FilePermissions)?,
metadata: {
[primitive]: primitive,
}?,
}